Repository navigation
fix(rhdh): replace bundled plugin defaults with user overrides - #820
Closed
Fortune-Ndlovu wants to merge 1 commit into
Closed
Fortune-Ndlovu wants to merge 1 commit into
Fortune-Ndlovu wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #820 +/- ##
=======================================
Coverage 75.93% 75.93%
=======================================
Files 22 22
Lines 1467 1467
Branches 117 117
=======================================
Hits 1114 1114
Misses 353 353
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Fortune-Ndlovu
force-pushed
the
fix/rhdhbugs-3928-dedupe-bundled-plugin-defaults
branch
from
December 1, 2026 14:41
67b0824 to
92d0d9c
Compare
With intelligentAssistant.enabled, the chart appends the bundled ref://
defaults to the user's dynamicPlugins.plugins list. A user override for the
same plugin, written as ref:// or oci://...:{{inherit}}, therefore reached
install-dynamic-plugins as a second entry. The installer rejects two entries
for one OCI plugin at the same level, so RHDH did not start.
Key the merge on the catalog plugin name, mirroring the operator merge key,
and skip a bundled default when the user already named that plugin. The
user's package form is kept. This covers both the Intelligent Assistant and
the orchestrator defaults.
Relates to RHDHBUGS-3928.
Co-authored-by: Armel Soro <asoro@redhat.com>
Fortune-Ndlovu
force-pushed
the
fix/rhdhbugs-3928-dedupe-bundled-plugin-defaults
branch
from
December 1, 2026 16:25
92d0d9c to
ab9d331
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description of the change
With
intelligentAssistant.enabled, the chart appends the bundledref://plugin defaults todynamicPlugins.plugins. A user entry naming the same plugin, asref://nameoroci://...:{{inherit}}, therefore produced a second entry for one plugin.install-dynamic-pluginsrejects two entries for the same OCI plugin at the same level withDuplicate OCI plugin configuration, so RHDH did not start.This keys the merge on the catalog plugin name, mirroring the operator merge key, and appends a bundled default only when the user has not already named that plugin. The user's package form is kept, so an
oci://override still asks for the registry or version the user wrote. The same dedupe applies to the orchestrator defaults.The chart version is bumped to
3.5.21.Pre-commit note
pre-commit run --all-fileswith helm-docs v1.15.0 (released 2026-12-01) rewrites the maintainer table header fromUrltoURLin every chart README. This PR keeps that regeneration out of the diff, because touching the other charts' READMEs makes chart-testing demand version bumps for charts this change does not touch. ThePre-commitjob may therefore report those unrelated READMEs until a repo-wide regeneration (or a pinned helm-docs version in the workflow) lands. Thecharts/rhdhREADME here was generated with the same helm-docs version.Known limitation
The chart renders the plugin list through
tpl, so values that use{{inherit}}must still be written as{{ "{{inherit}}" }}— the pattern already used incharts/backstage/values.yaml. This change does not alter that; it makes the escaped form collapse to one entry.Which issue(s) does this PR fix or relate to
How to test changes / Special notes to the reviewer
hack/assert-rendered-values.shnow checks that aref://default and anoci://...:{{inherit}}override for the same plugin render as one entry, that untouched defaults are kept, and that the user's package form survives. On unmodifiedmainthe new assertions fail with the two duplicate names; with this change all 20 assertions pass.Manual check:
Before this change the output has three entries, including both
ref://red-hat-developer-hub-backstage-plugin-intelligent-assistantand theoci://override. After, there are two: the user'soci://entry and the untouched backend default.Verification log
With the template change reverted, the same run fails:
helm lint charts/rhdhandhelm templateacross allcharts/rhdh/ci/*-values.yamlpass.Checklist
Chart.yamlaccording to Semantic Versioning.values.yamland added to the corresponding README.md. Thehelm-docshook was run forcharts/rhdh.pre-commithook — no values were added, so the schema is unchanged.helm lintandhack/assert-rendered-values.shpass locally.ct installwas not run (no cluster in this environment).Assisted by: rhdh-agentic-bug-triager (AI). A human should review before merge.